package top.gelonggld.model;

/**
 * Created by gelon on 2017/5/27.
 * 段落 有起始结束
 */
public abstract class BaseParagraph {
    public int start,end;
    public String paragraphStr;


    int type;


    public int getStart() {
        return start;
    }

    public BaseParagraph setStart(int start) {
        this.start = start;
        return this;
    }

    public int getType() {
        return type;
    }

    public int getEnd() {
        return end;
    }

    public BaseParagraph setEnd(int end) {
        this.end = end;
        return this;
    }

    public String getParagraphStr() {
        return paragraphStr;
    }

    public BaseParagraph setParagraphStr(String paragraphStr) {
        this.paragraphStr = paragraphStr;
        return this;
    }

    public BaseParagraph(int start, int end, String paragraphStr,int type) {
        this.start = start;
        this.end = end;
        this.paragraphStr = paragraphStr;
        initDate();
        onPushDate(paragraphStr);
        this.type=type;
    }

    public abstract void onPushDate(String paragraphStr);

    public abstract void initDate();
}
